﻿package component.tree.entity;

import java.util.ArrayList;
import java.util.List;


public class Tree extends Entity{
	public final static String ROOT_ID = "0"; //"-1";
	
	public final static int TYPE_0 = 0;
	public final static int TYPE_1 = 1;
	
	private Tree parent;
	
	private String id;
	private String parentId;
	private String name;
	private String code;
	private int type;
	private int level;
	private String path;
	
	private String otherValue;
	
	private boolean isLast = false;//是否是最后一个叶子节点
	private String isLastStr = "true";// "true,false,true"
	private String allName = "";//"父节点名称-子节点名称";
	
	private List childList = new ArrayList();
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	
	
	public String getOtherValue() {
		return otherValue;
	}
	public void setOtherValue(String otherValue) {
		this.otherValue = otherValue;
	}
	
	
	public boolean isLast() {
		return isLast;
	}
	public void setLast(boolean isLast) {
		this.isLast = isLast;
	}
	public String getIsLastStr() {
		return isLastStr;
	}
	public void setIsLastStr(String isLastStr) {
		this.isLastStr = isLastStr;
	}
	public String getAllName() {
		return allName;
	}
	public void setAllName(String allName) {
		this.allName = allName;
	}
	
	public List getChildList() {
		return childList;
	}
	public void setChildList(List childList) {
		this.childList = childList;
	}
	
	public Tree getParent() {
		return parent;
	}
	public void setParent(Tree parent) {
		this.parent = parent;
	}
	
}
